/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package io.renren.modules.app.controller;


import io.renren.modules.app.entity.UserEntity;
import io.renren.modules.app.service.UserService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 新增接口
 */
@RestController
@RequestMapping("/app")
@Api("APP测试接口")
public class AppUserController {

    @Autowired
    private UserService userService;

    @GetMapping("getById/{userId}")
    public UserEntity getById(@PathVariable Long userId){
        return userService.getById(userId);
    }
}
